<?php
/*
    Template Name: TownMeeting
*/

get_header("townmeeting");
// leaving div container-townmeeting open

    echo "
    <div id='div-left-townmeeting'><ul>\n";
    dynamic_sidebar('tm-left-bar') ;
    echo "</ul></div>\n";

    echo "
        <div id='div-posts-townmeeting'> ";

    query_posts(array(
        'posts_per_page' => '1', 
        'cat' => '5'));
    
    if( have_posts() ) {
        while( have_posts() ) {
        echo "<div>\n";
            echo "<h2>";
            the_title();
            echo "</h2>";
            the_post();
            echo "<div>\n";
            the_content();
            echo "</div></div>\n";
        }
    }

    echo "</div>  <!-- posts -->\n";
    echo "<div id='div-right-townmeeting'><ul>\n";

    dynamic_sidebar('tm-right-bar') ;
    echo "
    </ul></div>
    </div>";

        // get_footer();
            
// print_r("page.php");
?>
